home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / stepp000.swf / scripts / DefineSprite_2300 / frame_79 / DoAction.as
Text File  |  2008-11-12  |  626b  |  24 lines

  1. if(_root.CacheBaril.hitTest(_root.Meg._x,_root.Meg._y,true) and Touche == false)
  2. {
  3.    Touche = true;
  4.    set("/Variables:Vie",eval("/Variables:Vie") - 10);
  5.    if(eval("/Variables:Vie") < 1)
  6.    {
  7.       set("/Variables:Vie",0);
  8.       tellTarget("_root")
  9.       {
  10.          gotoAndStop("MegMeurt");
  11.          play();
  12.       }
  13.    }
  14.    if(eval("/Variables:MegCri") == false)
  15.    {
  16.       tellTarget("_root.Sons")
  17.       {
  18.          gotoAndStop("MegCri");
  19.          play();
  20.       }
  21.    }
  22.    setProperty("/Inventaire/BarreVie2/BarreVie3/Gage2", _width, eval("/Variables:GageLargeur") * (eval("/Variables:Vie") / 100));
  23. }
  24.